import request from '../utils/request'


export function listBlog(data) {
    return request({
        url: '/uum-blog/api/v2/door/pageBlog',
        method: 'get',
        params: data
    })
}


export function getTopBlog() {
    return request({
        url: '/uum-blog/api/v2/door/top',
        method: 'get'
    })
}


export function listBlogByTagOrCategory(data) {
    return request({
        url: '/uum-blog/api/v2/door/pageBlogForTagOrCategory',
        method: 'get',
        params: data
    })
}


export function getSuggest(title) {
    return request({
        url: '/uum-blog/api/v2/door/listSuggest' ,
        method: 'get',
        params: {title}
    })
}


export function listHotBlog() {
    return request({
        url: '/uum-blog/api/v2/door/listHotBlog',
        method: 'get',
    })
}


export function getBlogInfo(id) {
    return request({
        url: '/uum-blog/api/v2/door/detail/' + id ,
        method: 'get'
    })
}



